package com.baosight.risk.service.riri.entity;

import javax.persistence.*;

import com.baosight.risk.base.entity.BaseEntity;
import com.baosight.risk.common.annotation.Excel;
import lombok.Data;

/**
 * Table: T_RIAA_RISK
 */
@Data
@Table(name = "T_RIAA_RISK")
public class RiaaRisk extends BaseEntity {

    /**
     * 风险库编码
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    RISK_NO
     * Nullable:  false
     */
    @Column(name = "RISK_NO")
    @Excel(name = "风险库编码")
    private String riskNo;

    /**
     * 风险名称
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    RISK_NAME
     * Nullable:  true
     */
    @Column(name = "RISK_NAME")
    @Excel(name = "风险名称")
    private String riskName;

    /**
     * 风险描述
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    RISK_DESC
     * Nullable:  true
     */
    @Column(name = "RISK_DESC")
    @Excel(name = "风险描述")
    private String riskDesc;

    /**
     * 风险大类（一级）
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    RISK_TYPE
     * Nullable:  true
     */
    @Column(name = "RISK_TYPE")
    @Excel(name = "风险大类（一级）")
    private String riskType;

    /**
     * 风险大类名称
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    RISK_TYPE_NAME
     * Nullable:  true
     */
    @Column(name = "RISK_TYPE_NAME")
    @Excel(name = "风险大类名称")
    private String riskTypeName;

    /**
     * 风险细类编码（末级）
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    DETAIL_TYPE
     * Nullable:  true
     */
    @Column(name = "DETAIL_TYPE")
    @Excel(name = "风险细类编码（末级）")
    private String detailType;

    /**
     * 风险细类名称（末级）
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    DETAIL_TYPE_NAME
     * Nullable:  true
     */
    @Column(name = "DETAIL_TYPE_NAME")
    @Excel(name = "风险细类名称（末级）")
    private String detailTypeName;

    /**
     * 状态（01-草稿；02-提交；10-有效；20-停用）
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    STATUS
     * Nullable:  true
     */
    @Column(name = "STATUS")
    @Excel(name = "状态")
    private String status;

    /**
     * 状态说明
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    STATUS_NAME
     * Nullable:  true
     */
    @Column(name = "STATUS_NAME")
    @Excel(name = "状态说明")
    private String statusName;

    /**
     * 提交单位
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    SUBMIT_COMP_CODE
     * Nullable:  true
     */
    @Column(name = "SUBMIT_COMP_CODE")
    @Excel(name = "提交单位")
    private String submitCompCode;

    /**
     * 提交单位名称
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    SUBMIT_COMP_NAME
     * Nullable:  true
     */
    @Column(name = "SUBMIT_COMP_NAME")
    @Excel(name = "提交单位名称")
    private String submitCompName;

    /**
     * 提交人
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    SUBMIT_USER_CODE
     * Nullable:  true
     */
    @Column(name = "SUBMIT_USER_CODE")
    @Excel(name = "提交人")
    private String submitUserCode;

    /**
     * 提交人姓名
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    SUBMIT_USER_NAME
     * Nullable:  true
     */
    @Column(name = "SUBMIT_USER_NAME")
    @Excel(name = "提交人姓名")
    private String submitUserName;

    /**
     * 备注
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    REMARK
     * Nullable:  true
     */
    @Column(name = "REMARK")
    @Excel(name = "备注")
    private String remark;

    /**
     * 排序
     * <p>
     * Table:     T_RIAA_RISK
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @Column(name = "ROW_ORDER")
    @Excel(name = "排序")
//    private String rowOrder;
    private  Integer rowOrder;
    @Column(name = "COMP_CODE")
    @Excel(name = "所属单位")
    private String compCode;

    @Column(name = "COMP_NAME")
    @Excel(name = "所属单位名称")
    private String compName;

    @Column(name = "DEPT_CODE")
    @Excel(name = "所属部门")
    private String deptCode;

    @Column(name = "DEPT_NAME")
    @Excel(name = "所属部门名称")
    private String deptName;

    private static final long serialVersionUID = 1L;
}